package io.renren.modules.alarm.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * 
 * 
 * @author zhourl
 * @email zhou11258@foxmail.com
 * @date 2022-03-06 20:24:38
 */
@Data
@TableName("alarm_guard")
public class GuardEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	@TableId
	private Long userId;
	/**
	 * 用户名
	 */
	@NotBlank(message="用户名不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private String userName;
	/**
	 * 手机号
	 */
	@Email(message="手机格式不正确", groups = {AddGroup.class, UpdateGroup.class})
	@NotBlank(message="手机号不能为空", groups = AddGroup.class)
	private String userPhone;
	/**
	 * 用户密码
	 */
	@NotBlank(message="密码不能为空", groups = AddGroup.class)
	private String userPwd;
	/**
	 * 职位
	 */
	private String userPosition;
	/**
	 * 入职时间
	 */
	private Date enterTime;
	/**
	 * 状态(1:禁用，0:正常)
	 */
	private Integer userStatus;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新时间
	 */
	private Date updateTime;
	/**
	 * 逻辑删除（0：未删除 1：已删除）
	 */
	private Integer isDeleted;

}
